
package com.generator.statics.customerSalesStatics.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author shkstart
 * @create 2022-10-01 13:36
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CustomerCount {
    /**
     * 客户id
     */
    @TableId(value = "CUSTOMID", type = IdType.AUTO)
    private Integer customid;
    /**
     * 客户name
     */
    private String customname;
    /**
     * 客户电话
     */
    private String telephone;
    /**
     * 地址
     */
    @TableField("site")
    private String site;
    /**
     * 订单编号，外键
     */
    private String orderid;
    /**
     * 商品数量
     */
    private Integer purchaseNum;
    /**
     * 订单数量
     */
    private Integer orderNumbers;
    /**
     * 商品总金额
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private float prototal;
    private float prototal2;
    /**
     * 订单时间
     */
@JsonFormat(pattern = "yyyy-MM-dd HH-mm-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ordertime;


    /**
     * 用户名称
     */
    private String uname;
    /**
     * 审核状态
     */
    private String status;
    /**
     * 审核意见
     */
    private String opinion;
    /**
     * 审核人
     */
    @TableField("checkname")
    private String checkname;
    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("checktime")
    private Date chectime;



}